package cn.yyh.serviceOrder.controller;

import cn.yyh.serviceOrder.quartz.sevice.IQuartzService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @author 杨永航
 * @version 1.0
 * @Title: QuartzController
 * @Package: cn.yyh.serviceOrder.controller
 * @date 2021/7/11
 */
@RestController
@RequestMapping("/serviceOrder/quartz")
public class QuartzController {
    @Autowired
    private IQuartzService quartzService;

    @DeleteMapping("{jobName}")
    public void deleteQuartz(@PathVariable("jobName") String jobName) {
        quartzService.removeJob(jobName);
    }
}
